package com.ruoyi.course.service;

import java.util.List;
import com.ruoyi.course.domain.SysPaper;

/**
 * 试卷Service接口
 * 
 * @author YJF
 */
public interface ISysPaperService 
{
    /**
     * 查询试卷
     * 
     * @param sysPaper 试卷
     * @return 试卷
     */
    public SysPaper selectSysPaperByPaperId(SysPaper sysPaper);

    /**
     * 查询试卷列表
     * 
     * @param sysPaper 试卷
     * @return 试卷集合
     */
    public List<SysPaper> selectSysPaperList(SysPaper sysPaper);

    /**
     * 新增试卷
     * 
     * @param sysPaper 试卷
     * @return 结果
     */
    public int insertSysPaper(SysPaper sysPaper);

    /**
     * 修改试卷
     * 
     * @param sysPaper 试卷
     * @return 结果
     */
    public int updateSysPaper(SysPaper sysPaper);

    /**
     * 批量删除试卷
     * 
     * @param paperIds 需要删除的试卷主键集合
     * @return 结果
     */
    public int deleteSysPaperByPaperIds(Long[] paperIds);

    /**
     * 删除试卷信息
     * 
     * @param paperId 试卷主键
     * @return 结果
     */
    public int deleteSysPaperByPaperId(Long paperId);

    /**
     * 校验试卷名称是否唯一
     * @param sysPaper 试卷
     * @return 结果
     */
    public String checkPaperNameUnique(SysPaper sysPaper);
}
